package com.dhp.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dhp.common.BaseResponse;
import com.dhp.model.dto.userInterfaceInfo.UserInterfaceInfoApplyInvokeCountRequest;
import com.dhp.model.dto.userInterfaceInfo.listMyInterfaceRequest;
import com.dhp.model.entity.UserInterfaceInfo;
import com.dhp.model.vo.UserInterfaceVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author Dhp
* @description 针对表【user_interface_info(用户调用接口关系)】的数据库操作Service
* @createDate 2024-07-26 16:30:18
*/
public interface UserInterfaceInfoService extends IService<UserInterfaceInfo> {

    /**
     * 申请接口调用次数
     * @param applyRequest
     * @param request
     * @return
     */
    Boolean applyInvokeCount(UserInterfaceInfoApplyInvokeCountRequest applyRequest, HttpServletRequest request);

    /**
     * 获取当前登录用户的接口
     * @param request
     * @return
     */
    Page<UserInterfaceVO> listMyInterface(listMyInterfaceRequest myInterfaceRequest , HttpServletRequest request);
}
